package com.fuyun.rpc.admin.entity;

import java.util.Date;

/**
 * 服务信息实体类
 */
public class ServiceInfo {
	/**
	 * 服务名称
	 */
	private String serviceName;

	/**
	 * 服务版本
	 */
	private String serviceVersion;

	/**
	 * 服务分组
	 */
	private String serviceGroup;

	/**
	 * 服务地址
	 */
	private String serviceAddress;

	/**
	 * 服务端口
	 */
	private int servicePort;

	/**
	 * 服务状态
	 */
	private String status;

	/**
	 * 注册时间
	 */
	private Date registerTime;

	/**
	 * 最后心跳时间
	 */
	private Date lastHeartbeatTime;

	// Getters and Setters

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getServiceVersion() {
		return serviceVersion;
	}

	public void setServiceVersion(String serviceVersion) {
		this.serviceVersion = serviceVersion;
	}

	public String getServiceGroup() {
		return serviceGroup;
	}

	public void setServiceGroup(String serviceGroup) {
		this.serviceGroup = serviceGroup;
	}

	public String getServiceAddress() {
		return serviceAddress;
	}

	public void setServiceAddress(String serviceAddress) {
		this.serviceAddress = serviceAddress;
	}

	public int getServicePort() {
		return servicePort;
	}

	public void setServicePort(int servicePort) {
		this.servicePort = servicePort;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public Date getLastHeartbeatTime() {
		return lastHeartbeatTime;
	}

	public void setLastHeartbeatTime(Date lastHeartbeatTime) {
		this.lastHeartbeatTime = lastHeartbeatTime;
	}

	@Override
	public String toString() {
		return "ServiceInfo{" + "serviceName='" + serviceName + '\'' + ", serviceVersion='" + serviceVersion + '\'' + ", serviceGroup='" + serviceGroup + '\'' + ", serviceAddress='" + serviceAddress + '\'' + ", servicePort=" + servicePort + ", status='" + status + '\'' + ", registerTime=" + registerTime + ", lastHeartbeatTime=" + lastHeartbeatTime + '}';
	}
}